// AUSlotsSpinTestExpectedResults.H : Declaration of the CAUSlotsSpinTestExpectedResults class

#ifndef __AUSLOTSSPINTESTEXPECTEDRESULTS_H_
#define __AUSLOTSSPINTESTEXPECTEDRESULTS_H_

class CAUSlotsSpinTestExpectedResultsAccessor
{
public:
	LONG m_gutsid;
	double m_StandardDeviation;
	double m_Payout;

BEGIN_COLUMN_MAP(CAUSlotsSpinTestExpectedResultsAccessor)
	COLUMN_ENTRY_PS(1, 12, 9, m_StandardDeviation)
	COLUMN_ENTRY_PS(2, 12, 9, m_Payout)
END_COLUMN_MAP()

BEGIN_PARAM_MAP(CAUSlotsSpinTestExpectedResultsAccessor)
	COLUMN_ENTRY(1, m_gutsid)
END_PARAM_MAP()

DEFINE_COMMAND_EX(CAUSlotsSpinTestExpectedResultsAccessor, L" \
	SELECT \
		StandardDeviation, \
		Payout  \
	FROM dbo.AUSlotsSpinTestExpectedResults \
	WHERE gutsid = ?")

	// You may wish to call this function if you are inserting a record and wish to
	// initialize all the fields, if you are not going to explicitly set all of them.
	void ClearRecord()
	{
		memset(this, 0, sizeof(*this));
	}
};

class CAUSlotsSpinTestExpectedResults : public CCommand<CAccessor<CAUSlotsSpinTestExpectedResultsAccessor> >
{
public:
	HRESULT Open( CSession* pSession )
	{
		return CCommand<CAccessor<CAUSlotsSpinTestExpectedResultsAccessor> >::Open(*pSession);
	}
};

#endif // __AUSLOTSSPINTESTEXPECTEDRESULTS_H_
